cmake_minimum_required (VERSION 3.1) 
project (log) 

set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -fPIC")

include_directories(${PROJECT_SOURCE_DIR}/src)

add_subdirectory(src)

set (EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)

add_executable(mylog main.cc)

target_link_libraries(mylog log pthread)
